<?php
/**
 * common model file Created by PhpStorm.
 * User: wumengmeng
 * Date: 2019/08/20
 * Time: 06:01
 */

namespace HiCommon\Model;

class Areas extends Base
{
    
    protected $table = 'areas';
    
    protected $guarded = [];
    
    //public $timestamps = false;
    
    /**
     * 应该被调整为日期的属性
     *
     * @var array
     */
    protected $dates = [
    ];

    //一对多关联检测机构服务类型
    public function son()
    {
        return $this->hasMany(Areas::class, 'pid','id')
            ->select('id','name','pid');
    }
}